package cn.ligoo.part.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ligoo.part.dao.SysModuleDao;
import cn.ligoo.part.domain.SysModule;
import cn.ligoo.part.service.SysModuleService;

/**
 * @author Jin,QingHua
 * @version 2012-07-17 16:46:31
 */
@Service
public class SysModuleServiceImpl implements SysModuleService {

	@Resource
	private SysModuleDao sysModuleDao;

	@Override
	public Integer createSysModule(SysModule t) {
		this.sysModuleDao.insertEntity(t);
		return t.getId();
	}

	@Override
	public int modifySysModule(SysModule t) {
		return this.sysModuleDao.updateEntity(t);
	}

	@Override
	public int removeSysModule(SysModule t) {
		return this.sysModuleDao.deleteEntity(t);
	}

	@Override
	public SysModule getSysModule(SysModule t) {
		return this.sysModuleDao.selectEntity(t);
	}

	@Override
	public Integer getSysModuleCount(SysModule t) {
		return this.sysModuleDao.selectEntityCount(t);
	}

	@Override
	public List<SysModule> getSysModuleList(SysModule t) {
		return this.sysModuleDao.selectEntityList(t);
	}

}
